<?php
	class BackendConfigController extends BackendAppController
	{
		var $name = "BackendConfig";
		var $components = array("RequestHandler","Auth","Session");
		function admin_setting($modelName = null)
		{
			$this->pageTitle = sprintf(__("Backend Configuration"));
			if($this->data)
			{
				$this->BackendConfig->set($this->data);
				if($this->BackendConfig->validates())
				{
					if($this->BackendConfig->save($this->data))
					{
						$this->successMsg(__("Settings has been saved!"));
					}
				}
			}else
			{
				$this->data['BackendConfig'] = cr("cmsConfig.Backend"); 	
			}
			$this->helpers[] = "Form";
		}
	}
?>